<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			var a=prompt("请输入当前小时数值","");
			if(a>=6&&a<=12){
				for (var i=0;i<a;i++) {
					document.write("<img src='img/smile.gif'>")
				}
				document.write("上午好，欢迎来到贵美")
			}
				if(a>=13&&a<=20){
				for (var i=0;i<a;i++) {
					document.write("<img src='img/aftermoon.gif'>")
				}
				document.write("下午好，欢迎来到贵美")
			}
			else{
				for (var i=0;i<a;i++) {
					document.write("<img src='img/moon.gif'>")
				}
			}
		</script>
	</head>
	<body>
	</body>
</html>
